﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="SalesManagement._Default" %>

<%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
<%@ Register Src="~/Modules/Navigator.ascx" TagName="Navigator" TagPrefix="uc" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link href="css/toolbar.css" rel="stylesheet" type="text/css" />

    <script type="text/javascript">
        function clearNode(el) {
            treeNavigator.root.setText(el.text);
            treeNavigator.root.removeChildren();
        }
        function logout() {
            window.location.href = 'Logout.aspx';
        }
    </script>

</head>
<body>
    <form id="form1" runat="server">
    <ext:ResourceManager ID="ResourceManager1" runat="server" />
    <ext:Viewport ID="Viewport1" runat="server" Layout="border">
        <Items>
            <ext:Panel ID="pnlLayout" runat="server" Region="Center">
                <TopBar>
                    <ext:Toolbar runat="server">
                        <Items>
                            <ext:Button ID="Button1" runat="server" Text="Hệ thống">
                                <Menu>
                                    <ext:Menu ID="Menu1" runat="server">
                                        <Items>
                                            <ext:MenuItem ID="MenuItem1" runat="server" Text="Our first Menu" Icon="BulletBlue">
                                                <Menu>
                                                    <ext:Menu ID="Menu2" runat="server" BoxMinWidth="110">
                                                        <Items>
                                                            <ext:MenuItem ID="MenuItem2" runat="server" Text="Item1" />
                                                            <ext:MenuItem ID="MenuItem3" runat="server" Text="Item2" />
                                                            <ext:MenuItem ID="MenuItem4" runat="server" Text="Item3" />
                                                            <ext:MenuItem ID="MenuItem5" runat="server" Text="Item4" />
                                                            <ext:MenuItem ID="MenuItem6" runat="server" Text="Item5" />
                                                        </Items>
                                                    </ext:Menu>
                                                </Menu>
                                            </ext:MenuItem>
                                            <ext:MenuItem ID="MenuItem7" runat="server" Text="Our second Menu" Icon="BulletGreen">
                                                <Menu>
                                                    <ext:Menu ID="Menu3" runat="server" BoxMinWidth="110">
                                                        <Items>
                                                            <ext:MenuItem ID="MenuItem8" runat="server" Text="Item1" />
                                                            <ext:MenuItem ID="MenuItem9" runat="server" Text="Item2" />
                                                            <ext:MenuItem ID="MenuItem10" runat="server" Text="Item3" />
                                                            <ext:MenuItem ID="MenuItem11" runat="server" Text="Item4" />
                                                            <ext:MenuItem ID="MenuItem12" runat="server" Text="Item5" />
                                                        </Items>
                                                    </ext:Menu>
                                                </Menu>
                                            </ext:MenuItem>
                                        </Items>
                                    </ext:Menu>
                                </Menu>
                            </ext:Button>
                            <ext:Button ID="btn2" runat="server" Text="Danh mục">
                            </ext:Button>
                            <ext:Button ID="Button2" runat="server" Text="Nghiệp vụ">
                            </ext:Button>
                            <ext:Button ID="Button3" runat="server" Text="Công cụ">
                                <Listeners>
                                    <Click Fn="clearNode" />
                                </Listeners>
                            </ext:Button>
                            <ext:ToolbarFill />
                            <ext:Button ID="Button5" runat="server" Text="admin" Icon="User">
                                <Menu>
                                    <ext:Menu ID="Menu4" runat="server">
                                        <Items>
                                            <ext:MenuItem Text="Đổi mật khẩu">
                                            </ext:MenuItem>
                                        </Items>
                                    </ext:Menu>
                                </Menu>
                            </ext:Button>
                            <ext:ToolbarSeparator />
                            <ext:Button ID="Button4" runat="server" Text="Thoát" Icon="LockGo">
                                <Listeners>
                                    <Click Fn="logout" />
                                </Listeners>
                            </ext:Button>
                        </Items>
                    </ext:Toolbar>
                </TopBar>
                <Items>
                    <ext:BorderLayout ID="BorderLayout1" runat="server">
                        <West Collapsible="true" MinWidth="175" Split="true">
                            <ext:Panel ID="pnlNavigator" runat="server" Width="200" Title="DANH MỤC" Collapsed="false"
                                Margins="5 0 5 5" Layout="Fit">
                                <Items>
                                    <ext:TreePanel ID="treeNavigator" runat="server" BodyBorder="false" RootVisible="false"
                                        AutoScroll="true" NoLeafIcon="false">
                                        <Root>
                                            <ext:TreeNode NodeID="root" Text="Chức năng" Expanded="true">
                                            </ext:TreeNode>
                                        </Root>
                                        <Listeners>
                                            <Click Handler="pnlMain.load(node.id);pnlMain.setTitle(node.text.toUpperCase());pnlMain.setIconClass(node.attributes.iconCls);" />
                                        </Listeners>
                                    </ext:TreePanel>
                                </Items>
                            </ext:Panel>
                        </West>
                        <Center>
                            <ext:Panel ID="pnlMain" runat="server" Title="DANH SÁCH PHIẾU THU" Margins="5 5 5 0"
                                Layout="Fit" Icon="ApplicationAdd">
                            </ext:Panel>
                        </Center>
                        <North>
                            <ext:Panel ID="Panel3" runat="server" BodyBorder="false">
                                <TopBar>
                                    <ext:Toolbar ID="tbModule" runat="server">
                                        <Items>
                                            <%-- <ext:Button ID="btnList" runat="server" Text="Danh Mục" IconCls="list" Scale="Large"
                                                IconAlign="Top" OnDirectClick="btnList_Click" ViewStateMode="Enabled" />
                                            <ext:Button ID="btnWareHouse" runat="server" Text="Kho Hàng" IconCls="warehouse"
                                                Scale="Large" IconAlign="Top" OnDirectClick="btnWareHouse_Click" />
                                            <ext:Button ID="Button5" runat="server" Text="Mua Hàng" IconCls="purchase" Scale="Large"
                                                IconAlign="Top" />
                                            <ext:Button ID="Button6" runat="server" Text="Bán Hàng" IconCls="sales" Scale="Large"
                                                IconAlign="Top" />
                                            <ext:Button ID="Button8" runat="server" Text="Báo Cáo" IconCls="report" Scale="Large"
                                                IconAlign="Top" />
                                            <ext:Button ID="Button9" runat="server" Text="Hệ Thống" IconCls="system" Scale="Large"
                                                IconAlign="Top" />--%>
                                        </Items>
                                    </ext:Toolbar>
                                </TopBar>
                            </ext:Panel>
                        </North>
                    </ext:BorderLayout>
                </Items>
                <BottomBar>
                    <ext:StatusBar ID="statusMain" runat="server" DefaultText="Server: 192.168.2.3">
                    </ext:StatusBar>
                </BottomBar>
            </ext:Panel>
        </Items>
    </ext:Viewport>
    </form>
</body>
</html>
